package com.baizhi.app.appcontroller;

import com.baizhi.app.appservice.CmfzAudioAppService;
import com.baizhi.entity.CmfzAudio;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("app/audio")
public class CmfzAudioAppController {
    @Autowired
    private CmfzAudioAppService cmfzAudioAppService;
    @GetMapping("selectAudioByalbmId")
    @ResponseBody
    public List<CmfzAudio> selectAudioByalbmId(Integer albumId){
        List<CmfzAudio> cmfzAudios = cmfzAudioAppService.selectAudioByAlbumId(albumId);
        return cmfzAudios;
    }
}
